package com.yyi.springcloud.entities;

public class TestDataDto {

	private String primarykey;

	private String sensorno;// 传感器编号

	private String sensorvalue;// 传感器值

	private String sensorunit;// 传感器单位

	public String getSensorunit() {
		return sensorunit;
	}

	public void setSensorunit(String sensorunit) {
		this.sensorunit = sensorunit;
	}

	public String getPrimarykey() {
		return primarykey;
	}

	public void setPrimarykey(String primarykey) {
		this.primarykey = primarykey;
	}

	public String getSensorno() {
		return sensorno;
	}

	public void setSensorno(String sensorno) {
		this.sensorno = sensorno;
	}

	public String getSensorvalue() {
		return sensorvalue;
	}

	public double getSensorvalue4Double() {
		return Double.parseDouble(sensorvalue);
	}

	public void setSensorvalue(String sensorvalue) {
		this.sensorvalue = sensorvalue;
	}

	public TestDataDto() {
	}

	public TestDataDto(String primarykey, String sensorno, String sensorvalue, String sensorunit) {
		this.primarykey = primarykey;
		this.sensorno = sensorno;
		this.sensorvalue = sensorvalue;
		this.sensorunit = sensorunit;
	}

	@Override
	public String toString() {
		return "TestDataDto [primarykey=" + primarykey + ", sensorno=" + sensorno + ", sensorvalue=" + sensorvalue
				+ ", sensorunit=" + sensorunit + "]";
	}
}